home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_10_06 / 1006074b < prev    next >
Text File  |  1992-04-19  |  387b  |  21 lines

  1. #include "makedef.h"
  2.  
  3. main(int argc, char *argv[])
  4. {
  5. long    status;
  6. TARGET    *adjacency_list;
  7. char    target[ DEP_LEN ] = {0};
  8.  
  9. if (adjacency_list = parse_makefile(argc, argv, target)) {
  10.     status = process_dependency(adjacency_list, target);
  11.     exit(status);
  12. } else
  13.     fatal_error("No dependencies in makefile.");
  14. }
  15.  
  16. long    fatal_error(char *s)
  17. {
  18. printf("\nFatal error: %s",s);
  19. exit(FAIL);
  20. }
  21.